home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / LAPEqu.a < prev    next >
Encoding:
Text File  |  1992-01-29  |  4.9 KB  |  127 lines  |  [TEXT/MPS ]

  1. ;___________________________________________________________________________
  2. ;    Lap Manager Public Equates
  3. ;    © Apple Computer 1989-1991
  4. ;    All rights reserved
  5.  
  6.  IF &TYPE('__IncludingLAPEqu__') = 'UNDEFINED' THEN
  7. __IncludingLAPEqu__   SET 1
  8.  
  9. ;
  10. ; LAP Manager call codes passed in D0 (call at [ATalkHk2] + 2)
  11. ;
  12. LRdDispatch EQU         1                               ; Dispatch to protocol handler
  13. LWrtInsert  EQU         2                               ; Insert in LAPWrite hook
  14. LWrtRemove  EQU         3                               ; Remove from LAPWrite hook
  15. LWrtGet     EQU         4                               ; Get who's in LAPWrite hook
  16. LSetInUse   EQU         5                               ; Set address in use flag
  17. LGetSelfSend EQU        6                               ; Get value of self send flag
  18. LAARPAttach EQU         7                               ; Attach an AARP listener
  19. LAARPDetach EQU         8                               ; Detach an AARP listener
  20. LGetATalkInfo EQU       9                               ; Get AppleTalk info
  21. LGetPortInfo EQU        10                              ; Get port info
  22. LOpenADEV   EQU         11                              ; Open ADEV file
  23. LNSetInUse  EQU         12                              ; Port-based set-in-use call
  24. LGetBridgeInfo EQU      13                              ; Get bridge info
  25. LSetATalkInfo EQU       14                              ; Set AppleTalk info
  26. LShutdownBridge EQU     15                              ; Shut down bridge
  27. LInit       EQU         16                              ; init run time LAP manager
  28. LUsePortB   EQU         17                              ; request use of printer port
  29. LFreePortB  EQU         18                              ; grant use of printer port
  30. LStatPortB  EQU         19                              ; obtain current printer port status
  31. LNetAlert   EQU         20                              ; notify user of network alert condition
  32. L802Attach  EQU         21                              ; attach an 802.2 protocol handler
  33. L802Detach  EQU         22                              ; detach an 802.2 protocol handler
  34. LAddAEQ     EQU         23                              ; add AppleTalk event queue entry
  35. LRmvAEQ     EQU         24                              ; remove AppleTalk event queue entry
  36. LGetAEQ     EQU         25                              ; get pointer to AppleTalk event queue
  37. LLastCall   EQU         LGetAEQ                         ; Last valid call
  38.  
  39. ;
  40. ; Flag bits passed in D1 on LWrtInsert
  41. ;
  42. LWSelfSend  EQU         7                               ; ADEV handles self send
  43. LWSrvrWks   EQU         5                               ; Honor server/wks bit
  44. LWVMdefer   EQU         4                               ; buffer and defer incoming packets
  45. LWReserved  EQU         0                               ; Reserved for internal use
  46.  
  47. ;
  48. ; atlk call codes passed in D0 (call at atlk start plus 2)
  49. ;
  50. AInstall    EQU         1                               ; Installation
  51. AShutdown   EQU         2                               ; Shutdown
  52. AGetInfo    EQU         3                               ; Get link information
  53. AGetMCast   EQU         4                               ; Get multicast addr
  54. ASetMCast   EQU         5                               ; Set multicast addr
  55. ADelMCast   EQU         6                               ; Delete multicast addr
  56. AOpen       EQU         7                               ; Open an ATlk
  57. AClose      EQU         8                               ; Close an ATlk
  58. AEnq        EQU            9                                ; send ENQ's for a node address
  59. ADelAddr    EQU            10                                ; remove an established node address
  60.  
  61. ;
  62. ; ADEV call code passed in D0 (call at ADEV start)
  63. ;
  64.  
  65. GetADEV     EQU         101                             ; Get next ADEV
  66. SelectADEV  EQU         102                             ; Select ADEV
  67. ReSelADEV   EQU         103                             ; Re-selected ADEV
  68.  
  69. LAPMgrPtr   EQU         $B18                            ; This points to our start (???ATalkHk2?)
  70. LAPMgrCall  EQU         2                               ; Offset to make LAP manager calls
  71. atlkCall    EQU         2                               ; Offset to make atlk calls at
  72.  
  73. ;
  74. ; Resource IDs
  75. ;
  76. adevBaseID  EQU         -4032                           ; Base resource ID for ADEVs
  77.  
  78. ;
  79. ; atlk AGetInfo call
  80. ;
  81.                                                         ; (big enough to handle 6 byte link addr)
  82.  
  83. ATlkInfo    RECORD      0                               ; link information
  84. Version     DS.W        1                               ; version number
  85. InfoLength  DS.W        1                               ; length of this rec
  86. LinkSpeed   DS.L        1                               ; speed of link in bits/second
  87. BandWidth   DS.B        1                               ; bandwidth factor
  88. Reserved    DS.B        3
  89. Flags       DS.B        1                               ; informative flags (see below)
  90. LinkAdrLen  DS.B        1                               ; link address length in bytes
  91. LinkAddress DS.B        6                               ; start of link address (reserve 6 bytes)
  92. MaxNodes    DS.W        1                               ; max. number of nodes (base zero)
  93. Size        EQU         *
  94.             ENDR
  95.  
  96. AInfoVers   EQU         3                               ; version number describes reply buffer below
  97. AInfoSz     EQU         ATlkInfo.Size                   ; size in bytes of reply buffer
  98.  
  99. ;
  100. ; atlk AGetInfo flags
  101. ;
  102. AtlkExtended EQU        7                               ; bit in on if link has extended addressing
  103. AtlkROnly   EQU         6                               ; true if link is for router only ports
  104.  
  105. ;    Transition Queue Structures
  106.  
  107. ;    Transition Queue Element
  108.  
  109. ATQel            RECORD    0
  110. AeQQLink        DS.L    1                                ; link field
  111. AeQQType        DS.W    1                                ; queue type (dont care)
  112. AeQCallAddr        DS.L    1                                ; procedure address
  113. AeQSize            EQU        *
  114.                 ENDR
  115.  
  116. ;    Transitions
  117. ; %%% Change spelling to match inside Mac
  118. ;AOpenTask        EQU        0                                ; q type for open
  119. ;ACloseTellTask    EQU        2
  120. ;ACloseAskTask    EQU        3
  121. ;ACanclAskTask    EQU        4
  122. ATTransOpen            EQU        0                            ; Open Transition
  123. ATTransClose        EQU        2                            ; Close Transition
  124. ATTransClosePrep    EQU        3                            ; Close Prep Transition
  125. ATTransCancelClose    EQU        4                            ; Cancel Close Prep
  126.  
  127.                    ENDIF    ;  ...already included